#!/bin/bash
cd ./zoey-pc
echo $PATH
node -v
npm -v
npm config get registry
npm config set registry https://registry.npmjs.org/
npm config get registry
npm install

npm run build-only
cd ./deploy
rm -rf dist.tar.gz
tar -zcvf dist.tar.gz dist
rm -rf ./dist
cd ../